package io.renren.modules.sys.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.modules.sys.dao.UserBusinessDao;
import io.renren.modules.sys.entity.UserBusinessEntity;
import io.renren.modules.sys.service.UserBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserBusinessServiceImpl extends ServiceImpl<UserBusinessDao, UserBusinessEntity> implements UserBusinessService {
    @Autowired
    UserBusinessDao userBusinessDao;

    @Override
    public Boolean checkIsUserBusinessExist(Map<String, Object> params) {
        List list = userBusinessDao.checkIsUserBusinessExist(params);
        if (null != list && list.size() > 0)
            return true;
        return false;
    }
}
